package com.pansoft.kline.model;

import java.util.List;

/**
 * @author : zzj
 * @e-mail : zhangzhijun@pansoft.com
 * @date : 2018/11/26 20:33
 * @desc :  行情中的分析挂单数据
 * @version: 1.0
 */
public class DealRealAnalyzeEntryOrderModel {


    /**
     * code : 0
     * data : {"asksProportion":27.518,"bidsProportion":72.482,"asks":[{"price":"4049.18","originalPrice":4049.18,"volume":"0.014"},{"price":"4049.44","originalPrice":4049.44,"volume":"0.012"},{"price":"4049.47","originalPrice":4049.47,"volume":"0.05"},{"price":"4049.49","originalPrice":4049.49,"volume":"0.385"},{"price":"4049.65","originalPrice":4049.65,"volume":"0.012"},{"price":"4050.83","originalPrice":4050.83,"volume":"0.42"},{"price":"4051.09","originalPrice":4051.09,"volume":"0.017"},{"price":"4051.69","originalPrice":4051.69,"volume":"0.023"},{"price":"4054.57","originalPrice":4054.57,"volume":"0.348"},{"price":"4066.09","originalPrice":4066.09,"volume":"0.019"}],"bids":[{"price":"4041.87","originalPrice":4041.87,"volume":"0.543"},{"price":"4041.86","originalPrice":4041.86,"volume":"0.35"},{"price":"4041.51","originalPrice":4041.51,"volume":"0.007"},{"price":"4039.87","originalPrice":4039.87,"volume":"0.012"},{"price":"4038.49","originalPrice":4038.49,"volume":"0.006"},{"price":"4028.56","originalPrice":4028.56,"volume":"0.052"},{"price":"4028.55","originalPrice":4028.55,"volume":"0.861"},{"price":"4028.54","originalPrice":4028.54,"volume":"0.045"},{"price":"4028.2","originalPrice":4028.2,"volume":"0.505"},{"price":"4021.83","originalPrice":4021.83,"volume":"1.046"}]}
     */

    private int code;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * asksProportion : 27.518
         * bidsProportion : 72.482
         * asks : [{"price":"4049.18","originalPrice":4049.18,"volume":"0.014"},{"price":"4049.44","originalPrice":4049.44,"volume":"0.012"},{"price":"4049.47","originalPrice":4049.47,"volume":"0.05"},{"price":"4049.49","originalPrice":4049.49,"volume":"0.385"},{"price":"4049.65","originalPrice":4049.65,"volume":"0.012"},{"price":"4050.83","originalPrice":4050.83,"volume":"0.42"},{"price":"4051.09","originalPrice":4051.09,"volume":"0.017"},{"price":"4051.69","originalPrice":4051.69,"volume":"0.023"},{"price":"4054.57","originalPrice":4054.57,"volume":"0.348"},{"price":"4066.09","originalPrice":4066.09,"volume":"0.019"}]
         * bids : [{"price":"4041.87","originalPrice":4041.87,"volume":"0.543"},{"price":"4041.86","originalPrice":4041.86,"volume":"0.35"},{"price":"4041.51","originalPrice":4041.51,"volume":"0.007"},{"price":"4039.87","originalPrice":4039.87,"volume":"0.012"},{"price":"4038.49","originalPrice":4038.49,"volume":"0.006"},{"price":"4028.56","originalPrice":4028.56,"volume":"0.052"},{"price":"4028.55","originalPrice":4028.55,"volume":"0.861"},{"price":"4028.54","originalPrice":4028.54,"volume":"0.045"},{"price":"4028.2","originalPrice":4028.2,"volume":"0.505"},{"price":"4021.83","originalPrice":4021.83,"volume":"1.046"}]
         */

        private double asksProportion;
        private double bidsProportion;
        private List<AsksBean> asks;
        private List<BidsBean> bids;

        public double getAsksProportion() {
            return asksProportion;
        }

        public void setAsksProportion(double asksProportion) {
            this.asksProportion = asksProportion;
        }

        public double getBidsProportion() {
            return bidsProportion;
        }

        public void setBidsProportion(double bidsProportion) {
            this.bidsProportion = bidsProportion;
        }

        public List<AsksBean> getAsks() {
            return asks;
        }

        public void setAsks(List<AsksBean> asks) {
            this.asks = asks;
        }

        public List<BidsBean> getBids() {
            return bids;
        }

        public void setBids(List<BidsBean> bids) {
            this.bids = bids;
        }

        public static class AsksBean {
            /**
             * price : 4049.18
             * originalPrice : 4049.18
             * volume : 0.014
             */

            private String price;
            private double originalPrice;
            private String volume;

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public double getOriginalPrice() {
                return originalPrice;
            }

            public void setOriginalPrice(double originalPrice) {
                this.originalPrice = originalPrice;
            }

            public String getVolume() {
                return volume;
            }

            public void setVolume(String volume) {
                this.volume = volume;
            }
        }

        public static class BidsBean {
            /**
             * price : 4041.87
             * originalPrice : 4041.87
             * volume : 0.543
             */

            private String price;
            private double originalPrice;
            private String volume;

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public double getOriginalPrice() {
                return originalPrice;
            }

            public void setOriginalPrice(double originalPrice) {
                this.originalPrice = originalPrice;
            }

            public String getVolume() {
                return volume;
            }

            public void setVolume(String volume) {
                this.volume = volume;
            }
        }
    }
}
